package com.kitty.web.system.rechargescorereward.service.impl;


import com.kitty.web.core.Convert;
import com.kitty.web.domain.PRechargescorereward;
import com.kitty.web.mapper.PRechargescorerewardMapper;
import com.kitty.web.system.rechargescorereward.service.IPRechargescorerewardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 积分商城Service业务层处理
 * 
 * @author soul
 * @date 2022-03-16
 */
@Service
public class PRechargescorerewardServiceImpl implements IPRechargescorerewardService
{
    @Autowired
    private PRechargescorerewardMapper pRechargescorerewardMapper;

    /**
     * 查询积分商城
     * 
     * @param id 积分商城ID
     * @return 积分商城
     */
    @Override
    public PRechargescorereward selectPRechargescorerewardById(Long id)
    {
        return pRechargescorerewardMapper.selectPRechargescorerewardById(id);
    }

    /**
     * 查询积分商城列表
     * 
     * @param pRechargescorereward 积分商城
     * @return 积分商城
     */
    @Override
    public List<PRechargescorereward> selectPRechargescorerewardList(PRechargescorereward pRechargescorereward)
    {
        return pRechargescorerewardMapper.selectPRechargescorerewardList(pRechargescorereward);
    }

    /**
     * 新增积分商城
     * 
     * @param pRechargescorereward 积分商城
     * @return 结果
     */
    @Override
    public int insertPRechargescorereward(PRechargescorereward pRechargescorereward)
    {
        return pRechargescorerewardMapper.insertPRechargescorereward(pRechargescorereward);
    }

    /**
     * 修改积分商城
     * 
     * @param pRechargescorereward 积分商城
     * @return 结果
     */
    @Override
    public int updatePRechargescorereward(PRechargescorereward pRechargescorereward)
    {
        return pRechargescorerewardMapper.updatePRechargescorereward(pRechargescorereward);
    }

    /**
     * 删除积分商城对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePRechargescorerewardByIds(String ids)
    {
        return pRechargescorerewardMapper.deletePRechargescorerewardByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除积分商城信息
     * 
     * @param id 积分商城ID
     * @return 结果
     */
    @Override
    public int deletePRechargescorerewardById(Long id)
    {
        return pRechargescorerewardMapper.deletePRechargescorerewardById(id);
    }
}
